import { request } from '@/network/request.js'

// 注册
export const register = function (entity) {
    return request.post('/register/phone' , entity);
}
// 发生注册验证码
export const sendRegisterCode = function (phone) {
    return request.get(`/code/register/phone/${phone}`);
}

// 查看所有角色
export const viewRole = function () {
    return request.get('/register/role');
}